import request from '@/utils/request'

// 订单列表
export function listAllOrder(data) {
  return request({
    url: '/order/listAllOrder',
    method: 'post',
    data
  })
}
// 订单编辑
export function orderUpdate(data) {
  return request({
    url: '/order/update',
    method: 'post',
    data
  })
}
// 批次列表
export function listBatchNo(data) {
  return request({
    url: '/order/listBatchNo',
    method: 'post',
    data
  })
}
// 废弃批次
export function delBatchNo(data) {
  return request({
    url: '/order/delBatchNo',
    method: 'post',
    data
  })
}
// 支付订单
export function pushPay(data) {
  return request({
    url: '/order/pushPay',
    method: 'post',
    data
  })
}
// 取末端单号
export function getSecondWaybillNo(data) {
  return request({
    url: '/order/getSecondWaybillNo',
    method: 'post',
    data
  })
}
// 换单列表
export function listChange(data) {
  return request({
    url: '/order/listChange',
    method: 'post',
    data
  })
}
// 换单
export function getChangeWaybillNo(data) {
  return request({
    url: '/order/getChangeWaybillNo',
    method: 'post',
    data
  })
}
// 打印订单
export function expressLabel(data) {
  return request({
    url: '/print/expressLabel',
    method: 'post',
    data
  })
}

// 重复打印检测
export function checkExpress(data) {
  return request({
    url: '/print/checkExpress',
    method: 'post',
    data
  })
}
// 智能识别地址
export function AddressCorrect(data) {
  return request({
    url: '/AddressCorrect',
    method: 'post',
    data
  })
}
// 智能识别地址new
export function AddressCorrectNew(data) {
  return request({
    url: '/getAddressDetail',
    method: 'post',
    data
  })
}
// 导入D82补全
export function completionOrder(data) {
  return request({
    url: '/order/completionOrder',
    method: 'post',
    data
  })
}
// 母列表
export function orderMotherList(data) {
  return request({
    url: '/order_mother/list',
    method: 'post',
    data
  })
}
// 母列表终端区号
export function motherGetSecondWaybillNo(data) {
  return request({
    url: '/order_mother/getSecondWaybillNo',
    method: 'post',
    data
  })
}
// 子列表
export function motherListDetail(data) {
  return request({
    url: '/order_mother/listDetail',
    method: 'post',
    data
  })
}
// 预子母件
export function motherListUnpack(data) {
  return request({
    url: '/order_mother/unpack',
    method: 'post',
    data
  })
}
// 将预子母数据生成子母订单
export function motherListCreate(data) {
  return request({
    url: '/order_mother/create',
    method: 'post',
    data
  })
}
// d82模版下载
export function downTemplate(data) {
  return request({
    url: '/order/downTemplate',
    method: 'post',
    responseType: 'blob',
    data
  })
}
// 打印回调
export function printTimes(data) {
  return request({
    url: '/order/printTimes',
    method: 'post',
    data
  })
}
// 日志
export function listAllOrderLog(data) {
  return request({
    url: '/order_log/listAllOrderLog',
    method: 'post',
    data
  })
}
// 打印小标签
export function orderLabel(data) {
  return request({
    url: '/print/orderLabel',
    method: 'post',
    data
  })
}
// 获取订单是否被拦截
export function getIsStop(data) {
  return request({
    url: '/order/getIsStop',
    method: 'post',
    data
  })
}
